package domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    private Integer uid;
    private String tel;//电话号
    private String password;//密码
    private String realname;//真实姓名
    private String sex;//性别
    private String headerimg;//头像
    private String nickname;//昵称
    private String birthday;//生日
    private String email;//邮箱
    private Integer total;//总积分
    private Integer followsum;//关注数
    private Integer fansum;//粉丝数

    public User(Integer uid, Integer followsum, Integer fansum) {
        this.uid = uid;
        this.followsum = followsum;
        this.fansum = fansum;
    }

    public User(String tel, String password) {
        this.tel = tel;
        this.password = password;
    }

    public User(String tel, String password, String email) {
        this.tel = tel;
        this.password = password;
        this.email = email;
    }

    public User(String tel, String password, String email, Integer total) {
        this.tel = tel;
        this.password = password;
        this.email = email;
        this.total = total;
    }
}
